<template>
    <div>
        <h1 ref="thisRef"></h1>
        <button @click="add">获取refs</button>
    </div>
</template>

<script>
    export default {
        name : 'Content',
        methods:{
            add(){
                console.log(this.$refs.thisRef);
            }
        }
    }
</script>

<style lang="scss" scoped>

</style>